package cn.ximoon.rxretrofitframework;

import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;

public class MainActivity extends AppCompatActivity {

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main);
        UserBeanModel.getUser(new NetResultCallback<UserBean>() {
            @Override
            public void onStart() {

            }

            @Override
            public void onSuccess(UserBean data) {

            }

            @Override
            public void onFailed(int code, String msg) {

            }

            @Override
            public void cancel() {

            }
        });
    }
}
